<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>部门列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<script type="text/javascript">
function deptclick(dept_id){
	parent.main.location="__APP__/Certificates/lists?dept_id="+dept_id;
}
</script>

<style type="text/css">
	body{
		color: #333333;
	    font: 12px "宋体",Verdana,Arial,Helvetica,sans-serif;
		height:100%;
		border: 1px solid #E0E0E0;
	}
	ul{
		list-style: none outside none;
		margin-left:-20px;
	}
	li{
		margin: 7px 0;
	}
	a{
		text-decoration: none;
		color: #393939;;
	}
	.list_name a:hover{
		background-color:#3CC4A9;
	}
</style>
</head>
<body>
<div>
	<img src="__PUBLIC__/images/green_arrow.gif" WIDTH="20" HEIGHT="18"> OA办公自动化系统
</div>
<php>if(!empty($data)){</php>
<div>
  <ul>
  <volist name="data" id="vo" >
	  <php>if(!empty($vo['one'])){</php>
	  <li><img src="__PUBLIC__/images/tree2.jpg" /><a href="#" class="list_name" onclick="deptclick({$vo.dept_id});">{$vo.dept_name}</a></li>
	  <ul>
	  	<volist name="vo.one" id="vo1" >
	  	  <li><a href="javascript:;" class="list_name" onclick="deptclick({$vo1.dept_id});">{$vo1.dept_name}</a></li>
	  	  <php>if(!empty($vo1['two'])){</php>
		  <ul>
		  	<volist name="vo1.two" id="vo2" >
		  	  <li><a href="javascript:;"  class="list_name" onclick="deptclick({$vo2.dept_id});">{$vo2.dept_name}</a></li>
		  	  <php>if(!empty($vo2['three'])){</php>
		  	  <ul>
		  	    <php>foreach($vo2['three'] as $vo3){</php>
		  	      <li><a href="javascript:;"  class="list_name" onclick="deptclick({$vo3.dept_id});">{$vo3.dept_name}</a></li>
		  	      <php>if(!empty($vo3['four'])){</php>
		  	      <ul>
		  	      	<php>foreach($vo3['four'] as $vo4){</php>
		  	      	  <li><a href="javascript:;"  class="list_name" onclick="deptclick({$vo4.dept_id});">{$vo4.dept_name}</a></li>
		  	      	<php>}</php>
		  	      </ul>
		  	      <php>}</php>
		  	    <php>}</php>
		  	  </ul>
		  	  <php>}</php>
	  		</volist>
		  </ul>
		 <php>}</php>
	  	</volist>
	  </ul>
	 <php>}else{</php>
	 <li><img src="__PUBLIC__/images/tree1.jpg" /><a href="#" class="list_name" onclick="deptclick({$vo.dept_id});">{$vo.dept_name}</a></li>
	 <php>}</php>
  </volist>
  </ul>
<php>}</php>

</body>
</html>
